|
PHY CLOTH RAY CAST
Perform a ray cast on a cloth object.
Return Integer=PHY CLOTH RAY CAST(ID, x#, y#, z#, DirectionX#, DirectionY#, DirectionZ#)
ID
Integer
identification number of the cloth object
x#
Float
origin of the ray cast on the X axis
y#
Float
origin of the ray cast on the Y axis
z#
Float
origin of the ray cast on the Z axis
DirectionX#
Float
direction of the ray cast on the X axis
DirectionY#
Float
direction of the ray cast on the Y axis
DirectionZ#
Float
direction of the ray cast on the Z axis
returns 1 if the ray cast hit something otherwise a value of 0 is returned
A ray cast operation on a cloth object essentially casts a ray from the starting position towards the specified direction. It can be used to determine certain information such as if a cloth object is blocking the movement of a player etc. Performing a ray cast is carried out with the command phy cloth ray cast and it takes parameters for the ID number of the cloth, the initial position of the ray and its direction. When a ray cast has been performed you can use commands such as phy cloth ray cast hit x etc. to determine information about any collisions.
No example code is provided for this command
|